﻿using System;
using System.Collections.Generic;
using System.Text;

namespace TransparentAccords
{
    class Gl
    {
    }

    class Note
    {
        public static bool bRus = true;

        public int Acc;
        public bool Minor = false;
        public int Nm = 5;

        public Note(int Acc)
        {
            this.Acc = Acc;
        }

        public override string ToString()
        {
            string ret = "";
            switch (Acc)
            {
                case 0: ret = "C"; break;
                case 1: ret = bRus ? "C#" : "Db"; break;
                case 2: ret = "D"; break;
                case 3: ret = bRus ? "D#" : "Eb"; break;
                case 4: ret = "E"; break;
                case 5: ret = "F"; break;
                case 6: ret = bRus ? "F#" : "Gb"; break;
                case 7: ret = "G"; break;
                case 8: ret = bRus ? "G#" : "Ab"; break;
                case 9: ret = "A"; break;
                case 10: ret = bRus ? "B" : "Bb"; break;
                case 11: ret = bRus ? "H" : "B"; break;
            }
            if (Minor) ret += "m";
            if (Nm != 5) ret += Nm.ToString();
            return ret;
        }
    }

}
